import pytest


from web_ui_item.pageobject.main_page import MainPage
from web_ui_item.utils.logger import logger

@pytest.fixture()
def main_driver():
    driver = MainPage()
    logger.debug("========================用例执行开始========================")
    yield driver
    logger.debug("========================用例执行结束========================")
    driver.close_driver()

